import {
  handleRequest
} from './index'

// 目标责任书
//获取-目标责任书列表
export function getTargetList(query) {
  return handleRequest({
    url: '/target/list',
    method: 'post',
    data: query
  })
}


//新增/修改-目标责任书
export function addTarget(query) {
  return handleRequest({
    url: '/target/addOrUpdate',
    method: 'post',
    data: query
  })
}


//删除-目标责任书
export function delTarget(query) {
  return handleRequest({
    url: '/target/delData',
    method: 'get',
    params: query
  })
}
//查看-目标责任书
export function getTarget(query) {
  return handleRequest({
    url: '/target/detail',
    method: 'get',
    params: query
  })
}

//打印-目标责任书
export function printTarget(query) {
  return handleRequest({
    url: '/target/print',
    method: 'get',
    params: query
  })
}
